<template>
  <div>
    <div class="title">

      <h2>该组件被点击{{count}}次</h2>
      <button @click="count++">点击</button>
    </div>
    <div class="title">

      <h2>该组件被点击{{count}}次</h2>
      <button @click="count1++">点击</button>
    </div>
  </div>
</template>

<script>
export default {

  data : {

      count: 0

  },
  methods: {

  },
}
</script>

<style lang="less" scoped>
  .title{
    background-color: red;
  }
</style>
